package com.zjw.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zjw.annotation.domain.ResponseResult;
import com.zjw.annotation.domain.entity.Tag;

import java.util.List;

/**
 * 标签(Tag)表服务接口
 *
 * @author ljzy
 * @since 2023-12-19 15:00:03
 */
public interface TagService extends IService<Tag> {

    ResponseResult getTagList(Long pageNum, Long pageSize);

    ResponseResult addTag(Tag tag);

    ResponseResult getTag(Long id);

    ResponseResult alterTag(Tag tag);

    ResponseResult delTag(List<Long> id);

    ResponseResult listAllTag();

    public List<Tag> getTagsByArticleId(Long id);

    void addArticleTag(Long id, long tId);

    void deleteTags(Long id);
}

